/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mazecore.game;

import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.screen.Screen;
import de.lessvoid.nifty.screen.ScreenController;

/**
 *
 * @author Esr
 */
public class Menu  implements ScreenController{

    public void bind(Nifty nifty, Screen screen) {
     
    }

    public void onStartScreen() {
     
    }

    public void onEndScreen() {
     
    }
    
    public void  connect(){
    MazeCore.application.nifty.fromXml("Interface/menu.xml", "select_level");
    }
    
    public void  quit(){
    MazeCore.application.stop();
    }
    
   public void  hard(){
   
   MazeCore.application.startGame(40);
   }
   
    public void normal(){
   
   MazeCore.application.startGame(20);
    }
    
    public void easy(){
        
  MazeCore.application.startGame(10);
    }
    
    public void menu(){
       MazeCore.application.nifty.fromXml("Interface/menu.xml", "main_menu"); 
  
    }
    
}
